package cz.data.common.mark.manage;

import cz.data.common.support.db.DbType;
import cz.data.common.support.db.core.DbTable;
import cz.data.common.support.db.manage.ManageDialect;
import cz.data.common.support.db.manage.ManageDialectRegistry;

import java.util.Properties;

public interface JdbcManageDialect extends ManageDialect {

    String properties(DbTable table, Properties properties);

    static JdbcManageDialect create(DbType dbType) {
        ManageDialect dialect = ManageDialectRegistry.factory(dbType);
        return (JdbcManageDialect) dialect;
    }
}
